const scrollHeight = {
	data() {
		return {}
	},
	onReady() {
		//动态获取滚动区域高度
		const query = uni.createSelectorQuery().in(this);
		query.select('#scroll').boundingClientRect(data => {
			const height = uni.getSystemInfoSync().windowHeight - data.top;
			document.getElementById('scroll').style.height = height + 'px';
		}).exec();
	}
}

export default scrollHeight
